package com.rgs.gateway.admin.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author meix
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "gateway_route")
public class GatewayRoutePO implements Serializable {

    @ApiModelProperty(value = "url路径")
    private String url;
    @ApiModelProperty(value = "路由id")
    private String routeId;
    @ApiModelProperty(value = "判定其")
    private String predicates;
    @ApiModelProperty(value = "过滤器")
    private String filters;
    @ApiModelProperty(value = "描述")
    private String description;
    @ApiModelProperty(value = "排序")
    private Integer orders = 0;

    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除（0：否 1：是）")
    private Integer isDelete = 0;
}
